@layout("/common/_form.html",{js:["/assets/course/course_edit.js"]}){
<link href="${ctxPath}/assets/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctxPath}/assets/umeditor/third-party/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctxPath}/assets/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctxPath}/assets/umeditor/umeditor.min.js"></script>
<form class="layui-form" id="courseForm" lay-filter="courseForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>

                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>


                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label"><span style="color: red;">*</span>课程类别</label>
                        <div class="layui-input-block">
                            <input id="categoryId" name="categoryId" type="hidden">
                            <input id="categoryName" name="categoryName" placeholder="请选择课程分类" type="text"
                                   class="layui-input" lay-verify="required" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">学习人数（虚拟）<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="people" name="people" placeholder="请输入学习人数（虚拟）" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">访问倍数<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="multi" name="multi" placeholder="请输入访问倍数（1个人当几个）" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">购买价<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="price" name="price" placeholder="请输入购买价" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">原价<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="orgPrice" name="orgPrice" placeholder="请输入原价" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>


                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">简介<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="intro" name="intro" placeholder="请输入简介" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">排序<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="sort" name="sort" placeholder="请输入排序" type="number"  class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>


                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">封面图<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <button type="button" class="layui-btn layui-btn-sm" id="picBtn"><i class="layui-icon"></i>选择图片</button>
                            <input id="cover" name="cover" type="hidden" class="layui-input"/>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" id="coverimg"  name="coverimg" width="92px">
                            </div>
                        </div>
                    </div>




                    <div class="layui-inline layui-col-md9">
                        <label class="layui-form-label">详情<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <textarea name="content" id="content" style="width:100%;height:300px;"></textarea>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" id="cancel">&emsp;取消&emsp;</button>
    </div>

</form>

@}